﻿#include "FITKSpectraTransmissionLoss.h"

namespace Acoustics
{
    FITKSpectraTransmissionLoss::FITKSpectraTransmissionLoss()
    {
        //初始化
        
    }

    FITKSpectraTransmissionLoss::~FITKSpectraTransmissionLoss()
    {

    }

    FITKAcousticsAbstractSpectra::AcousticsSpectraType FITKSpectraTransmissionLoss::getSpectraType()
    {
        //返回频谱类型
        return FITKAcousticsAbstractSpectra::AcousticsSpectraType::TransmissionLoss;
    }

    bool FITKSpectraTransmissionLoss::isRealValue()
    {
        return true;
    }

    double FITKSpectraTransmissionLoss::getDBDefaultCoefficient()
    {
        return 1.0;
    }

    void FITKSpectraTransmissionLoss::initData()
    {
        //实部数据默认值初始化
        int count = this->getSpectraCount();
        double defaultValue = 1.0;
        for (int i = 0; i < count; i++)
        {
            this->setSpectraValueAt(i, defaultValue);
        }
    }
}

